﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsTest
{
    public class DBContextConfiguration : DbConfiguration
    {
        public DBContextConfiguration()
        {
            //设置数据库日志格式化程序
            SetDatabaseLogFormatter((context, action) => new DBlogFormatter(context, action));
        }
    }
}
